import request from '@/utils/request'

// 获取部门列表
export function getDeptList(params) {
  return request({
    url: '/sysDepartment/getDepartmentTree',
    method: 'POST',
    params: params
  })
}

// 增加部门
export function addDept(params) {
  return request({
    url: '/sysDepartment/add',
    method: 'POST',
    params: params
  })
}

// 删除部门
export function removeDept(params) {
  return request({
    url: '/sysDepartment/delete',
    method: 'POST',
    params: params
  })
}

// 修改部门信息
export function updateDept(params) {
  return request({
    url: '/sysDepartment/update',
    method: 'POST',
    params: params
  })
}

// 查询具体信息
export function findDept(params) {
  return request({
    url: '/sysDepartment/info',
    method: 'POST',
    params: params
  })
}

// 查询具体信息
export function getAllDept(params) {
  return request({
    url: '/sysDepartment/getList',
    method: 'POST',
    params: params
  })
}
